package woaini.wind.ai.controller;

import java.util.HashMap;
import java.util.Map;

import dev.langchain4j.model.output.structured.Description;
import lombok.Data;

/**
 * 开放动作 DTO
 *
 * @see OpenActionRequest
 * @author yefeng {@date 2025-03-13 10:05:30}
 */
@Data
@Description("动作服务器参数")
public class OpenActionRequest {

  public OpenActionRequest(String action) {
    this.action = action;
    this.params = new HashMap<>();
  }

  /**
   * @see String 作名称
   */
  @Description("执行动作名称")
  private String action;

  /**
   * @see Map<String, Object> 参数
   */
  @Description("所需要参数")
  private Map<String, Object> params;

  public void setParams(String key, String value) {
    params.put(key, value);
  }
}
